/**
 * 
 */
package com.epam.entity;

import java.util.Date;

/**
 * @author Nugumanova V.
 *
 */
public class Teacher extends Person {

	
	protected String category;

	public Teacher(long id, String userName, String password, Role status,
			String name, String iin, String address, String phone,
			Date dateOfBirth,  String category) {
		super(id, userName, password, status, name, iin, address, phone,
				dateOfBirth);
		
		this.category = category;
	}

	@Override
	public String getName() {
		return super.getName();
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	@Override
	public String toString() {
		StringBuilder s = new StringBuilder();
		s.append("Teacher # ").append(id);
		s.append(super.toString()).append("\n");
		s.append("category ").append(category);
		return s.toString();
	}

}
